window.onload = function() {
    const xhr = new XMLHttpRequest();
    xhr.open("POST", "./auth/VerifyToken", true);
    xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    token = localStorage.getItem("token")
    console.log(token);
    xhr.send("token=" + token);
    if (xhr.readyState === 4 && xhr.status === 200) {
        console.log("OK");
    } else {
        const urls = xhr.response;
        console.log(urls.url);
        // window.location.href = "/";
    }
}